//
//  NetworkService.h
//  MiniWeChat
//
//  Created by ByteDance on 2025/6/26.
//


#import <Foundation/Foundation.h>
#import "MessageModel.h"

typedef void(^MessageReceivedCompletion)(MessageModel *message, NSError *error);
typedef void(^MessageSendCompletion)(NSError *error);
typedef void(^DataCompletion)(id data, NSError *error);

@interface NetworkService : NSObject

+ (instancetype)sharedInstance;

- (void)sendMessage:(MessageModel *)message completion:(MessageSendCompletion)completion;
- (void)fetchUserById:(NSString *)uid completion:(DataCompletion)completion;

@end
